







OrderedDictionary<(Of <TKey, TValue>)> Constructor (IEnumerable<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>) |
See Also |
![]() ![]() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Creates a new OrderedDictionary. The TKey must implemented IComparable<TKey> or IComparable. The CompareTo method of this interface will be used to compare keys in this dictionary.
A collection and keys and values (typically another dictionary) is used to initialized the contents of the dictionary.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public OrderedDictionary( IEnumerable<KeyValuePair<TKey, TValue>> keysAndValues ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ keysAndValues As IEnumerable(Of KeyValuePair(Of TKey, TValue)) _ ) |
Visual C++ |
---|
public: OrderedDictionary ( IEnumerable<KeyValuePair<TKey, TValue>>^ keysAndValues ) |
Parameters
- keysAndValues
- IEnumerable<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>
A collection of keys and values whose contents are used to initialized the dictionary.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | TKey does not implement IComparable<TKey>. |